<?php 
	echo $this->Session->flash(); 
	echo $this->Session->flash('good');
	echo $this->Session->flash('bad');
?>
<table cellpadding="0" cellspacing="0" class="table-listing">
	<tr>
			<th class="col-no">
				<input type="checkbox" id="check-all" title="<?php echo __('Check All') ?>" class="rcheckbox" />
			</th>
			<th><?php echo $this->Paginator->sort('name'); ?></th>
			<th><?php echo $this->Paginator->sort('status'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
	foreach ($optionTypes as $optionType): ?>
	<tr class="tr-row">
		<td class="col-no">
			<input type="checkbox" name="ids[]" value="<?php echo $optionType['OptionType']['id'] ?>" id="check-item-<?php echo $optionType['OptionType']['id']; ?>" class="check-item" /> 
		</td>
		<td class="canclick"><?php echo h($optionType['OptionType']['name']); ?>&nbsp;</td>
		<td class="status-col canclick"><?php echo $this->OptionTypes->showStatus($optionType['OptionType']['status']); ?></td>
		<td class="actions action-cm3">
			<?php echo $this->Html->link(__('Edit'), array('admin' => true, 'action' => 'edit', $optionType['OptionType']['id']), array('class' => 'act-lk edit-link')); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('admin' => true, 'action' => 'delete', $optionType['OptionType']['id']), array('class' => 'act-lk del-link'), __('Are you sure you want to delete # %s?', $optionType['OptionType']['id'])); ?>
		</td>
	</tr>
	<?php endforeach; ?>
</table>
<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	
</p>

<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
</div>
